import request from '@/utils/request'

//获取邮箱验证码
export function sendEmail(params){
	return request({
		url:'/user/sendEmail',
		method:'post',
		params
	})
}

//校验邮箱验证码
export function checkEmailCode(params){
	return request({
		url:'/user/checkEmailCode',
		method:'post',
		params
	})
}


//查询用户是否存在
export function checkUser(params){
	return request({
		url:'/user/checkUser',
		method:'post',
		params
	})
}

//注册
export function registerUser(params){
	return request({
		url:'/user/register',
		method:'post',
		params
	})
}

